﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace xna_game_engine.source
{
    public class CTalentTree
    {
        //* Members *//
        BaseCharacter mOwner;
        string mName;
        List<CTalentBase> mTalents;


        //* Functions *//
        /// <summary>
        /// Talent Tree Constructor
        /// </summary>
        /// <param name="name">The name of the Talent Tree</param>
        public CTalentTree(string name)
        {
            mName = name;
            mTalents = new List<CTalentBase>();
        }

        public void SetOwner(BaseCharacter own)
        {
            mOwner = own;
        }

        public void AddTalent(CTalentBase talent) // TODO: Add position in "tree"
        {
            if (!mTalents.Contains(talent))
            {
                mTalents.Add(talent);
            }
        }

        public void AddTalentPoint(int index)
        {
            mTalents[index].AddPoint();
        }
    }
}
